import request from '@/utils/request'

export function getList(page, size, userId, shopId) {
  return request({
    url: `/item/pageItem/${page}/${size}/${userId}/${shopId}`,
    method: 'get'
  })
}

export function addItem(item) {
  return request({
    url: `/item/addItem`,
    method: 'post',
    params: item
  })
}

export function updateItemUpOrDown(itemId,flag) {
  return request({
    url: `/item/UpOrDown/${itemId}/${flag}`,
    method: 'get',
  })
}
